<template>
	<page-loading class="wrap" :show='isLoading' mode='if' >
	<view>
		<view class="width-70 u-text-center" >
			<view class="width-60"><image class="width-70" src="https://files.yzsheng.com/bussiness/imgs/gou.png" mode="widthFix"></image></view>
			<view class="width-70 font-32 color-666">您已成功绑定手机号!</view>
		</view>
		<view class="width-80 btn-bg-yellow" @click="goNext">下一步</view>
	</view>
	</page-loading>
</template>

<script>
export default {
	data() {
		return {
			// ispass: false,
		

			isLoading:false,
			isSetPayPsd:false
		};
	},
	computed: {

	},
	created() {
		this.$nextTick(function(){
			this.IsExistPayPwd();
			// this.isLoading=true
		})
	},
	methods: {

		//是否设置支付密码
		async IsExistPayPwd() {
		  try {
		    const res = await this.$api.user.IsExistPayPwd()
		    console.log(res)
		    this.isSetPayPsd = res.data
				this.isLoading=true
		  } catch (e) {
		    console.log(e)
		    //TODO handle the exception
		  }
		},
		goNext(){
			if(this.isSetPayPsd){
				uni.navigateTo({
				  url: '/pages_common/pages_me/assets/assetsManage/assetsManage'
				})
				
			}else{
				uni.navigateTo({
				  url: '/pages_common/pages_me/assets/setPassword/setPsd'
				})
			}
		}
	}
};
</script>

<style scoped lang="scss">
.wrap {
	width: 100%;
	min-height: 100vh;
	background-color: #fff;
	padding-top: 300rpx;
}
.width-60{
	margin: auto;
}
.font-32{
	font-size: 32rpx;
}
.width-70 {
	margin: auto;
	margin-top: 60rpx;
	font-size: 30rpx;
	font-weight: 500;
	color: #666666;
}
.width-80 {
	margin: 10%;
	height: 90rpx;
	line-height: 90rpx;
	font-size: 32rpx;
	margin-top: 200rpx;
}
</style>
